import Vue from 'vue'
import Vuex from 'vuex'

import createVuexAlong from 'vuex-along' //vuex-along
Vue.use(Vuex)

// 引入小仓库
import login from './login'
import hotel from './hotel'
import register from './register'
import detail from './detail'
import pay from "./pay"
import order from './order'

export default new Vuex.Store({
  modules: {
    login,
    hotel,
    register,
    detail,
    pay,
    order
  },
  plugins: [createVuexAlong()]//vuex-along
})
